<?php
/**
 * UtilisateurFixture
 *
 */
class UtilisateurFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary'),
		'login' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'key' => 'unique', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'password' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 256, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'role_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 2, 'unsigned' => false),
		'nom' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 50, 'unsigned' => false),
		'prenom' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 50, 'unsigned' => false),
		'email' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 256, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'email_confirmed' => array('type' => 'boolean', 'null' => false, 'default' => '0'),
		'date_de_naissance' => array('type' => 'date', 'null' => false, 'default' => null),
		'photo' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'latitude' => array('type' => 'decimal', 'null' => false, 'default' => null, 'length' => '10,7', 'unsigned' => false),
		'longitude' => array('type' => 'decimal', 'null' => false, 'default' => null, 'length' => '10,7', 'unsigned' => false),
		'adresse_1' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'adresse_2' => array('type' => 'string', 'null' => true, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'ville' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'code_postal' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 10, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'country_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 3, 'unsigned' => false),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'login' => array('column' => 'login', 'unique' => 1)
		),
		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'login' => 'Lorem ipsum dolor sit amet',
			'password' => 'Lorem ipsum dolor sit amet',
			'role_id' => 1,
			'nom' => 1,
			'prenom' => 1,
			'email' => 'Lorem ipsum dolor sit amet',
			'email_confirmed' => 1,
			'date_de_naissance' => '2015-01-15',
			'photo' => 'Lorem ipsum dolor sit amet',
			'latitude' => '',
			'longitude' => '',
			'adresse_1' => 'Lorem ipsum dolor sit amet',
			'adresse_2' => 'Lorem ipsum dolor sit amet',
			'ville' => 'Lorem ipsum dolor sit amet',
			'code_postal' => 'Lorem ip',
			'country_id' => 1
		),
	);

}
